#include "findpassword.h"
#include "ui_findpassword.h"
#include "QMessageBox"
findpassword *findpassword::mypassword=nullptr;
findpassword::findpassword(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::findpassword)
{
    ui->setupUi(this);
}

findpassword::~findpassword()
{
    delete ui;

}

void findpassword::on_pushButton_clicked()
{emit(sendma(ui->lineEdit->text()));



}

void findpassword::on_pushButton_2_clicked()
{
    emit(sendcode(ui->lineEdit_2->text()));
}
void  findpassword ::feedback(bool a){
    if(a){
        emit(openreset());
        close();
    }
    else{
        QMessageBox::warning(this, tr("Waring"),
                                     tr("验证码错误！"),
                                      QMessageBox::Yes);
        ui->lineEdit->clear();    }
}
